<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title><%= h APP_CONFIG[:site_name] %> 1.0 by Cristian Rasch</title>

    <meta content="free, online, dictionary, ruby on rails, definitions, translations, word look-ups" name="keywords"/>
    <meta content="<%= h APP_CONFIG[:site_name] %> Free Online Dictionary" name="description"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <%= yield :head %>

    <%= javascript_include_tag :all, :cache => Rails.env == 'production' %>
    <%= stylesheet_link_tag :all, :cache => Rails.env == 'production' %>
  </head>
  <body>
    <div id="header">
      <div id="logo">
        <h1>
          <%= link_to "#{h APP_CONFIG[:site_name]} 1.0", root_path %>
        </h1>
        <p>Written by <%= link_to 'Cristian Rasch', about_path %></p>
      </div>
      <!-- end #logo -->
      <div id="menu">
        <%= render :partial => 'shared/menu' %>
      </div>
      <!-- end #menu -->
    </div>
    <!-- end #header -->
    <div id="page">
      <div id="content">
        <div class="post">
          <h1 class="title">
            <%= yield :title %>
          </h1>
          
          <p class="byline">
            <i><%= yield :subtitle %></i>
          </p>

          <p id="flash_messages" class="byline">
            <%= render :partial => 'shared/flash_messages' %>
          </p>
          
          <div class="entry">
            <%= yield %>
          </div>
          <!--div class="meta">
                <p class="links"><a href="#" class="comments">Comments (32)</a> &nbsp;&bull;&nbsp;&nbsp; <a href="#" class="more">Read full post &raquo;</a></p>
            </div-->
        </div>
      </div>
      <!-- end #content -->      
      <%= render(:partial => 'shared/user_sidebar') %>
      <!-- end #user sidebar -->
      
      <%= current_page?(root_path) ? render(:partial => 'shared/sidebar') : render(:partial => 'shared/image_sidebar') %>
      <!-- end #sidebar -->
    </div>
    <!-- end #page -->
    <div id="footer">
      <p>&copy; 2008. All Rights Reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
    </div>
    <!-- end #footer -->

    <script type="text/javascript">
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
      try {
        var pageTracker = _gat._getTracker("UA-6887376-1");
        pageTracker._trackPageview();
      } catch(err) {}
    </script>
    <!-- end #google-analytics -->
  </body>
</html>
